# Replication code for Tables 1, 5, and 6

clear
use "Conquest REP.dta"
gen logmilex = log(milex)
gen logmilexchal = log(milexadv)
gen logmilexshare = (logmilex)/(logmilexchal + logmilex)
gen rspolity2 = polity2 + 10
gen rspolity2adv = polity2adv+10
gen rspolity2int = rspolity2 * rspolity2adv

drop if entire==1
save data2, replace
drop if retaliatory == 1
save data, replace

#####Regressions (Appendix)

##Table 6
clear 
use data

logit cowwar popul ethnic island colony logmilexshare rspolity2 rspolity2adv rspolity2int, cluster(confnum)
logit cowwar popul ethnic island colony logmilexshare rspolity2 rspolity2adv rspolity2int tcresource tcstratloc, cluster(confnum)
logit cowwar popul garrison ethnic island colony logmilexshare rspolity2 rspolity2adv rspolity2int, cluster(confnum)

#####Descriptive Statistics

##Table 1
clear
use "Conquest REP.dta"
drop if retaliatory == 1

tab africa if year > 1945
tab americas if year > 1945
tab asia if year > 1945
tab europe if year > 1945
tab mideast if year > 1945

tab polity2adv if polity2adv > 6 & year > 1945
tab polity2adv if polity2adv < 7 & polity2adv > -7 & year > 1945
tab polity2adv if polity2adv < -6 & year > 1945
tab polity2 if polity2 > 6 & year > 1945
tab polity2 if polity2 < 7 & polity2 > -7 & year > 1945
tab polity2 if polity2 < -6 & year > 1945

tab powlevchal if year > 1945
tab powlev if year > 1945

## Table 5
clear
use data

tab held if year < 1946
tab held if year > 1945 & year < 1980
tab held if year > 1979

##Text claims
clear
use data

tab violence if year > 1945
tab cowwar if year > 1945

clear
use data

tab popul cowwar
tab garrison cowwar

tab popul
tab garrison
tab popul if year<1980
tab popul if year>1979
tab garrison if year<1980
tab garrison if year>1979

tab island
tab island if year<1980
tab island if year>1979



